﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using Logic;

namespace Music
{
    public class DiskPrinter
    {
        public void Print(Disk disk)
        {
            DiscLogic logic = new DiscLogic();
            int totalLength = logic.GetLength(disk);
            Console.WriteLine(totalLength);
            List<AbstractTrack> tracks = disk.Tracks;
            for (int i = 0; i < tracks.Count; i++)
            {
                AbstractTrack track = tracks[i];
                Console.Write(track.Name);
                Console.WriteLine(" " + track.Length);
            }
        }
    }
}
